package com.joysuch.wwyt.mh.bean;

import cn.zlg.common.springmvc.validate.constraints.NotNull;
import com.joysuch.wwyt.core.bean.BaseAttachmentBean;
import com.joysuch.wwyt.core.bean.SimpleStringBean;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

@Data
@ApiModel(value = "监测点类型")
public class MhMonitoringTypeAddBean implements Serializable {

    @ApiModelProperty(value = "id")
    private Long id;

    @ApiModelProperty(value = "监测类型")
    @NotNull(field = "监测类型", message = "监测点类型名称不能为空")
    private String name;

    @ApiModelProperty(value = "数值单位")
    private String unit;


    @ApiModelProperty(value = "分类ID  0设备设施 1有毒可燃气体")
    @NotNull(field = "分类id")
    private Long categoryId;

    @ApiModelProperty(value = "数量:返给前端显示")
    private Integer number;

    @ApiModelProperty(value = "图片")
    private BaseAttachmentBean imageBean;

    @ApiModelProperty(value = "状态转换 N否 Y是")
    private String defaultType;

    @ApiModelProperty(value = "数值转换")
    private List<SimpleStringBean> units;

    @Data
    public static class Search implements java.io.Serializable {

        @ApiModelProperty(value = "分页查询:类型或数值单位")
        private String nameOrUnit;
        private String name;
        private String unit;
        @ApiModelProperty(value = "分页查询:分类")
        private Long categoryId;

    }
}
